import os
from flask_uploads import IMAGES


class Config(object):
    pass


class ProdConfig(Config):
    pass


class DevConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:root@127.0.0.1:3306/forward"
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    UPLOADED_PHOTO_DEST = os.path.dirname(os.path.abspath(__file__))+'/uploads'
    UPLOADED_PHOTO_ALLOW = IMAGES
    RESERVE_DATE_MORNING = "morning"
    RESERVE_DATE_AFTERNOON = "afternoon"
    RESERVE_COUNT = 5
    RESERVE_STATE_SUCCESS = 'success'
    RESERVE_STATE_ERROR = 'error'

